/*
 Navicat Premium Data Transfer

 Source Server         : record_manage
 Source Server Type    : MySQL
 Source Server Version : 80020
 Source Host           : 47.106.67.122:3306
 Source Schema         : record_manage

 Target Server Type    : MySQL
 Target Server Version : 80020
 File Encoding         : 65001

 Date: 01/04/2022 17:58:40
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for student
-- ----------------------------
DROP TABLE IF EXISTS `student`;
CREATE TABLE `student` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(20) DEFAULT NULL COMMENT '姓名',
  `number` varchar(50) DEFAULT NULL COMMENT '编号',
  `sex` char(1) DEFAULT NULL COMMENT '性别',
  `institute` varchar(50) DEFAULT NULL COMMENT '学院',
  `class` varchar(50) DEFAULT NULL COMMENT '班级',
  `create_time` bigint DEFAULT NULL COMMENT '创建时间',
  `update_time` bigint DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='学生表';

-- ----------------------------
-- Records of student
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for teacher
-- ----------------------------
DROP TABLE IF EXISTS `teacher`;
CREATE TABLE `teacher` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(20) DEFAULT NULL COMMENT '姓名',
  `number` varchar(50) DEFAULT NULL COMMENT '编号',
  `sex` char(1) DEFAULT NULL COMMENT '性别',
  `institute` varchar(50) DEFAULT NULL COMMENT '学院',
  `title` varchar(50) DEFAULT NULL COMMENT '职称',
  `create_time` bigint DEFAULT NULL COMMENT '创建时间',
  `update_time` bigint DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='教师表';

-- ----------------------------
-- Records of teacher
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
  `id` int NOT NULL AUTO_INCREMENT,
  `user_type` int DEFAULT NULL COMMENT '用户类型',
  `user_name` varchar(50) DEFAULT NULL COMMENT '用户名',
  `number` varchar(50) DEFAULT NULL COMMENT '编号',
  `password` varchar(50) DEFAULT NULL COMMENT '密码',
  `user_id` int DEFAULT NULL COMMENT '用户id（与学生或教师对应）',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户表';

-- ----------------------------
-- Records of user
-- ----------------------------
BEGIN;
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
